//
//  HLYiYanModel.m
//  Various
//
//  Created by HarwordLiu on 16/3/24.
//  Copyright © 2016年 Harword. All rights reserved.
//

#import "HLYiYanModel.h"

@implementation HLYiYanModel

+ (NSArray *)getDataFromDataSource:(NSArray *)arrResult {
    NSMutableArray *arrModel = [NSMutableArray array];
    for (NSDictionary *tempDic in arrResult) {
        [arrModel addObject:[HLYiYanModel baseModelWithDict:tempDic]];
    }
    return arrModel;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"originbook"]) {
        _originbookModel = [HLOriginbookModel baseModelWithDict:value];
    } else if ([key isEqualToString:@"creator"]) {
        _creatorModel = [HLCreatorModel baseModelWithDict:value];
    }
    
}

@end
